import request from "../utils/request";

/**
 * 获取conversationId
 * @param data
 * @returns {Promise<*>}
 */
export function newConversation(data) {
	return request('/ooh-ai/v3/bot/newConversation', data, 'POST');
}

/**
 * 创建语音
 * @param data
 * @returns {Promise<*>}
 */
export function createSpeech(data) {
	return request('/ooh-ai/v3/bot/createSpeech', data, 'POST');
}

/**
 * 获取conversationId
 * @param data
 * @returns {Promise<*>}
 */
export function cancelChat(data) {
	return request('/ooh-ai/v3/bot-open/cancelChat', data, 'POST');
}

/**
 * 获取clogo
 * @param data
 * @returns {Promise<*>}
 */
export function getLogo(data) {
	return request('/ooh-ai/v3/bot-open/getLogo', data, 'GET');
}